package com.ruoyi.training.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员做题记录持久化(考核记录)对象 tb_exam_res
 *
 * @author wng
 * @date 2024-08-04
 */
public class ExamRes extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 从业人员id
     */
    private Long userId;

    /**
     * 试卷id
     */
    @Excel(name = "试卷id")
    private Long paperId;

    /**
     * 培训计划id
     */
    @Excel(name = "培训计划id")
    private Long planId;

    /**
     * 答题记录json
     */
    @Excel(name = "答题记录json")
    private String examRes;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public ExamRes() {
    }

    public ExamRes(Long userId, Long paperId, Long planId, String examRes) {
        this.userId = userId;
        this.paperId = paperId;
        this.planId = planId;
        this.examRes = examRes;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    public Long getPlanId() {
        return planId;
    }

    public void setExamRes(String examRes) {
        this.examRes = examRes;
    }

    public String getExamRes() {
        return examRes;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("paperId", getPaperId())
                .append("planId", getPlanId())
                .append("examRes", getExamRes())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
